<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>教师仪表盘</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-5">
    <h1 class="text-center">教师仪表盘</h1>
    <ul class="list-group">
        <li class="list-group-item"><a href="/teacher/view-courses">查看本学期及过去学期所授课程的学生上课班级及成绩</a></li>
        <li class="list-group-item"><a href="/teacher/set-score-distribution">录入本学期课程成绩前设置成绩的分布比例</a></li>
        <li class="list-group-item"><a href="/teacher/enter-scores">录入成绩</a></li>
        <li class="list-group-item"><a href="/teacher/save-scores">保存成绩</a></li>
        <li class="list-group-item"><a href="/teacher/submit-scores">提交成绩</a></li>
    </ul>
    <button class="btn btn-danger mt-3" onclick="logout()">注销</button>
</div>
<script>
    function logout() {
        sessionStorage.removeItem('role');
        window.location.href = '/login';
    }
</script>
</body>
</html>